/*
 * tp2Ways.c
 *
 *  Created on: 16/06/2011
 *      Author: am
 */

#include <stdlib.h>

int main(int argc, char* argv[]){

	register int i, j, k, cacheSize, iteraciones, m;
	iteraciones = 1000;
	m = 4194304; //2²²
	cacheSize = atoi(argv[1]);
	char array[m];
	k = cacheSize*atoi(argv[2]);
	for (j = 0; j < iteraciones; j++){
		for (i = 0; i < k; i=i+cacheSize){
			array[i] = 'x';
		}
	}

	return EXIT_SUCCESS;
}
